const tools = require.context("./tools", false, /^.*\.js$/);
function install(vue, option) {
	tools.keys().forEach(fileName => {
		let tool = tools(fileName).default;
		const name = fileName.replace(/(.*\/)*([^.]+).*/ig,"$2");
		if (option[name]) {
			utils[name] = tool;
			tool.init(option[name]);
		}
	});
}

const utils = {
    install,
};

export default utils
